﻿#region copyright info
//------------------------------------------------------------------------------
// <copyright company="ChaosStudio">
//     Copyright (c) 2002-2010 巧思工作室.  All rights reserved.
//     Contact:		MSN:zhouyu@cszi.com , QQ:478779122
//		Link:				http://www.69sea.com http://www.cszi.com
// </copyright>
//------------------------------------------------------------------------------
#endregion

namespace CS.Http
{
    /// <summary>
    ///  将HttpContent里的Request里的相关集合转换为HttpParam对象
    ///  参数处理模块:Ver:0.11
    /// </summary>
    /// 
    /// <description class = "CS.Param.HttpParamHelper">
    ///   2010-02-04      增加期望捕获的枚举，降低不必的内存损耗
    ///   2010-02-05      增加IEnumerable给HttpParamCollection
    /// </description>
    /// 
    /// <history>
    ///   2010-3-3 18:14:33 , zhouyu ,  创建	     
    ///  </history>
    public sealed class ParamHelper
    {

        //private readonly Hashtable _dic;    //暂存处理过的对象

        /// <summary>
        /// 默认构造
        /// </summary>
        public ParamHelper()
        {
            //_dic = new Hashtable();
        }

        public ParamMethod From(string p)
        {
            return p==null ? new ParamMethod(0, p) : new ParamMethod(p.GetHashCode(),p);
        }



    }
    
  


}
